package com.shoping.common.health;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;

@Slf4j
public class DiagnosticHealthStatusChangeListener implements ApplicationListener<HealthStatusChangedEvent> {

    @Override
    public void onApplicationEvent(HealthStatusChangedEvent event) {
        log.info("--当前状态--" + event.getCurrent());
    }
}
